#! /usr/bin/python python3

# 猜大小
'''
def cainum():
    n=int(input('请输入数字:'))

    if n < 51 and n > 0:
        print('小')
    elif n > 50 and n < 101:
        print('大')
    else:
        print('数字超出了范围!')
'''

# 求完数



n=1
for a in range(1,1001):
    if a % n ==0:
        if a == int(sum(n,1)):
            print(a)
        n += 1

 



















'''
while True:
    print('目录:')
    print('1.猜大小')
    print('2.求完数')
    print('3.求水仙花数')
    print('4.回文数')
    print('5.不能被4整除的组合')
    print('0.退出')
    print('-------------------------------------------------------')

    s=int(input('请输入选项:'))
    if s == 1:
        cainum()
    elif s == 2:
        pass
    elif s == 3:
        pass
    elif s == 4:
        pass
    elif s == 5:
        pass
    elif s ==0:
        break
    print('-------------------------------------------------------')
'''








